import mongoose from "mongoose";

const homeDataSchema = new mongoose.Schema(
  {
    img: { type: String, required: true },
    video: { type: String, required: true },
    name: { type: String, required: true },
    left: { type: Number, required: true },
    top: { type: Number, required: true },
    width: { type: Number, required: true },
    height: { type: Number, required: true },
    nameTop: { type: Number, required: true },
    nameRight: { type: Number, required: true },
    nameBgImgWidht: { type: Number, required: true },
    nameBgImgHeight: { type: Number, required: true },
    Layers: { type: Number, required: true },
  },
  { collection: "HomeData" }
);

const HomeData = mongoose.model("HomeData", homeDataSchema);

export default HomeData;
